﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Member.Master" AutoEventWireup="true"
    CodeBehind="NewPO.aspx.cs" Inherits="VPNNew.NewPO" Theme="Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content7" ContentPlaceHolderID="Center" runat="server">
    <div id="PODetail">
        <p>
            <span>VPN[[AccountInfo]]</span>
        </p>
        <p>
            [[YourExpectAccountName]] :
            <asp:TextBox ID="txtAccountName" runat="server" ValidationGroup="new" MaxLength="25"></asp:TextBox>
            <atk:TextBoxWatermarkExtender runat="server" ID="TextBoxWatermarkExtender1" TargetControlID="txtAccountName"
                WatermarkCssClass="watermark" WatermarkText="[[VALPleaseEnterYourExpectAccountName]]" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtAccountName"
                Display="None" ValidationGroup="new" runat="server" ErrorMessage="[[VALPleaseEnterYourExpectAccountName]]"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtAccountName"
                Display="None" ValidationGroup="new" runat="server" ErrorMessage="[[VALAccountNameFormat]]"
                ValidationExpression="\w*"></asp:RegularExpressionValidator>
            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="[[VALDuplicateAccountName]]"
                ControlToValidate="txtAccountName" ValidationGroup="new" Display="None" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
            <asp:CustomValidator ID="CustomValidator2" runat="server" Display="None" ValidationGroup="new"
                ErrorMessage="[[VALNeedAProduct]]" ControlToValidate="txtAccountName" OnServerValidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
        </p>
        <p>
            <span>[[ProductSelection]]</span>
        </p>
        <p>
            <div>
                <asp:UpdatePanel runat="server" ID="up1">
                    <ContentTemplate>
                        <scc:GridView runat="server" ID="gvProduct" AutoGenerateColumns="False" AutoSaveMultSelectValue="False"
                            MultSelect="False" NeedCheckAllButton="False" NeedConvertSelectColumn="True"
                            SelectedRowStyle-BackColor="Gold" DataKeyNames="ProductID">
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" HeaderStyle-Width="24px" ItemStyle-HorizontalAlign="Center" />
                                <asp:TemplateField HeaderText="[[ProductName]]">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        <div>
                                            <a href="javascript:void(0)" onclick="">
                                                <%# Eval("Name") %></a>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Price" DataFormatString="{0:￥0.00}" HeaderText="[[Price]]"
                                    HeaderStyle-Width="80px">
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                            </Columns>
                        </scc:GridView>
                        <p>
                            <asp:Button ID="btnBuy" runat="server" Text="[[BuyItNow]]" OnClick="btnBuy_Click"
                                ValidationGroup="new" />
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="new" />
                        </p>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </p>
        <div>
        </div>
    </div>
</asp:Content>
